#!/bin/sh

start() {
	./toyhttpd
}

stop() {
	killall -s SIGHUP toyhttpd
}

restart() {
	stop
	start
}

case $1 in
	start)   start;;
	stop)    stop;;
	restart) restart;;
	*)
		echo "USAGE:"
		echo "  $0 start | stop | restart"
		;;
esac
